package com.visionblue.business.ship.view;

import android.content.Context;
import android.util.AttributeSet;

import androidx.appcompat.widget.AppCompatEditText;

import com.binaryfork.spanny.Spanny;

public class BoldEditText extends AppCompatEditText {


    public BoldEditText(Context context) {
        super(context);
    }

    public BoldEditText(Context context, AttributeSet attrs) {
        super(context, attrs);
    }


    @Override
    public void setText(CharSequence text, BufferType type) {
        if(text == null) {
            text = "";
        }
        super.setText(new Spanny(text, new FakeBoldSpan()), type);
    }
}
